<template>
  <div>
    <el-button type="primary" @click='openDialog'>打开弹窗</el-button>

    <dialog-check v-if='showDialog' :value.sync="showDialog"></dialog-check>
  </div>
</template>

<script>
import DialogCheck from './components/dialog-check.vue'
export default {
  name: 'dialog-demo',
  components: {
    DialogCheck
  },
  data () {
    return {
      showDialog: false
    }
  },
  methods: {
    openDialog () {
      this.showDialog = true
    },

  }
}
</script>

<style lang="less" scoped>
</style>
